package com.example.logger.slice;

import com.example.logger.ResourceTable;
import com.orhanobut.logger.Logger;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Component;


public class MainAbilitySlice extends AbilitySlice {

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_main);

        findComponentById(ResourceTable.Id_btn1).setClickedListener(new Component.ClickedListener() {
            @Override
            public void onClick(Component component) {
                Logger.e("Logger.e 测试成功！！！");

            }
        });
    }

}
